package com.cdks.wuxiu.api.mapper;

import java.util.List;
import java.util.Set;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cdks.wuxiu.entity.mysql.CallSheetInfo;
import com.cdks.wuxiu.entity.mysql.UserBaseInfo;

import io.lettuce.core.dynamic.annotation.Param;

/**
 * 通话信息表 Mapper 接口
 */
public interface CallSheetInfoMapper extends BaseMapper<CallSheetInfo> {
    UserBaseInfo selectCallee(@Param("selfId") long selfId, @Param("userType") int userType, @Param("role") int role, @Param("sex") int sex, @Param("price") int price, @Param("excludes") Set<Long> excludes);
    UserBaseInfo getRandAnswer(@Param("selfId") long selfId, @Param("userType") int userType, @Param("role") int role, @Param("sex") int sex, @Param("price") int price, @Param("excludes") Set<Long> excludes);
    
    List<UserBaseInfo> getNoticeCallee(@Param("userId") long userId, @Param("userType") int userType, @Param("role") int role, @Param("excludes") Set<String> excludes);
    List<UserBaseInfo> getRandCallee(@Param("selfId") long selfId, @Param("userType") int userType, @Param("role") int role, @Param("sex") int sex);

    int record(@Param("ucid") String ucid, @Param("info") String info);
    int setSipId(@Param("ucid") String ucid, @Param("sipId") String sipId);
}
